package com.jobcn.repository.spider;

import com.jobcn.entity.SpiderTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by winson on 17-6-20.
 */
@Repository
public interface SpiderTaskRepository  extends JpaRepository<SpiderTask, Integer> {
    List<SpiderTask> findAllByStatusAndTaskType(Integer status,Integer taskType);
    SpiderTask findTopByStatusAndTaskType(Integer status,Integer taskType);
}